Skip to content

Make GTUtil.canSeeSunClearly work for all dimensions even if they have fixed time enabled - #5239

Merged
gustovafing merged 3 commits into
GregTechCEu:1.20.1from
screret:sc/make-day-check-more-generic
Aug 6, 2026
Merged

Make GTUtil.canSeeSunClearly work for all dimensions even if they have fixed time enabled#5239
gustovafing merged 3 commits into
GregTechCEu:1.20.1from
screret:sc/make-day-check-more-generic

Conversation

@screret

@screret screret commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What

Remove the special case for JAVD in GTUtil.canSeeSunClearly() in favor of a fully generic solution

Implementation Details

copied Level#isDay's logic and removed the check that made fixed time be neither day or night.
Also removed the duplicate Level.getBiome(pos.above()) call by storing the biome's holder in a variable instead of the biome itself

AI Usage

  • No AI driven tools were used for this pull request.

Outcome

void dimension mods other than JAVD will also work now

How Was This Tested

ran game, went into Just Another Void Dimension, placed solar boiler, filled with water, waited.

@screret
screret requested a review from a team as a code owner August 4, 2026 12:44
@github-actions github-actions Bot added the 1.20.1 label Aug 4, 2026
@YoungOnionMC

Copy link
Copy Markdown
Member

can we remove javd from the gradle as well?

@gustovafing

Copy link
Copy Markdown
Member

I don't think javd is a gradle dep

@gustovafing gustovafing added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Aug 6, 2026
@gustovafing
gustovafing enabled auto-merge (squash) August 6, 2026 08:33
@gustovafing
gustovafing merged commit 36cdfb8 into GregTechCEu:1.20.1 Aug 6, 2026
5 of 6 checks passed
gustovafing added a commit that referenced this pull request Aug 6, 2026
…e fixed time enabled (#5239)

Co-authored-by: Gustavo <77560533+gustovafing@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants